Javascript Get Url Hash Python